<template>
<div>
  <div v-if="modal">
    <Modal
      v-model="modal"
      width="1800"
      title="导入密接人群数据">
      <dispose-excel :columns="columns" :url="url"></dispose-excel>
    </Modal>
  </div>
</div>
</template>

<script>
import DisposeExcel from '../../dispose-excel/dispose-excel'
export default {
  name: 'index-importMJ',
  components: { DisposeExcel },
  data () {
    return {
      columns: [
        {
          title: '姓名',
          key: 'name',
          fixed: 'left',
          align: 'center',
          minWidth: 100
        },
        {
          title: '身份证号',
          key: 'card_no',
          fixed: 'left',
          align: 'center',
          minWidth: 150
        },
        {
          title: '联系电话',
          key: 'tel',
          align: 'center',
          minWidth: 100
        },
        {
          title: '居住地区',
          key: 'area',
          align: 'center',
          minWidth: 100
        },
        {
          title: '详细地址',
          key: 'address',
          minWidth: 200,
          align: 'center'
        },
        {
          title: '数据源',
          key: 'datasource',
          align: 'center',
          minWidth: 150
        },
        {
          title: '接触关系',
          key: 'contact',
          align: 'center',
          minWidth: 150
        },
        {
          title: '隔离措施（XX区居家隔离；XX区集中隔离；XX区居住未隔离；XX医院住院观察；离沈）',
          key: 'measure',
          minWidth: 300,
          align: 'center'
        },
        {
          title: '现居住地（隔离宾馆要填写至房间号、现住址要精确）',
          key: 'addressNow',
          minWidth: 400,
          align: 'center'
        },
        {
          title: '备注（其他需说明情况）',
          key: 'remark',
          minWidth: 200,
          align: 'center'
        }
      ],
      modal: false,
      url: 'api/ac/xgc/ImportExcelService/saveImportExcelInfoByMj'
      // failedUrl: ''
    }
  },
  methods: {
    // 初始化
    init () {
      this.modal = true
    }
  }
}
</script>

<style scoped>

</style>
